﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Threading.Tasks;

namespace IGGCore
{
    public class DebugManager
    {
        private static DebugManager instance;
        private string PathDebugFile = @"D:\IGGDebug\";

        public static DebugManager GetInstance()
        {
            if (instance == null)
            {
                instance = new DebugManager();
            }
            return instance;
        }

        public void Debug(string subject, string raw)
        {
            StreamWriter writer = new StreamWriter(PathDebugFile + subject+".txt");
            writer.Write(raw);
            writer.Close();
        }
    }
}
